package com.example.shortmessage.model;

import com.example.shortmessage.contract.MainContract;
import com.example.shortmessage.data.entity.MessageData;

import org.litepal.LitePal;

import java.util.List;

/**
 * @author 27638
 */
public class MainModel implements MainContract.Model {

    @Override
    public List<MessageData> choose(String read) {

        return LitePal.where("read = ?", read).find(MessageData.class);
    }
}
